<?php /* Smarty version 2.6.16, created on 2012-04-06 07:16:13
         compiled from news.tpl */ ?>
<?php echo '
<script type="text/javascript">
function redirectPg(nid)
{
   window.location.href="newsdetails.php?news_id="+nid;
}
</script>
'; ?>

<div id="paging"> 
 <div class="right-panel">
      <h1 title="News"><span>News</span></h1>
      <div class="clear"></div>
 
	 <?php if ($this->_tpl_vars['NumNews'] > 0): ?>
	  <?php unset($this->_sections['newsRow']);
$this->_sections['newsRow']['name'] = 'newsRow';
$this->_sections['newsRow']['loop'] = is_array($_loop=$this->_tpl_vars['NewsArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['newsRow']['show'] = true;
$this->_sections['newsRow']['max'] = $this->_sections['newsRow']['loop'];
$this->_sections['newsRow']['step'] = 1;
$this->_sections['newsRow']['start'] = $this->_sections['newsRow']['step'] > 0 ? 0 : $this->_sections['newsRow']['loop']-1;
if ($this->_sections['newsRow']['show']) {
    $this->_sections['newsRow']['total'] = $this->_sections['newsRow']['loop'];
    if ($this->_sections['newsRow']['total'] == 0)
        $this->_sections['newsRow']['show'] = false;
} else
    $this->_sections['newsRow']['total'] = 0;
if ($this->_sections['newsRow']['show']):

            for ($this->_sections['newsRow']['index'] = $this->_sections['newsRow']['start'], $this->_sections['newsRow']['iteration'] = 1;
                 $this->_sections['newsRow']['iteration'] <= $this->_sections['newsRow']['total'];
                 $this->_sections['newsRow']['index'] += $this->_sections['newsRow']['step'], $this->_sections['newsRow']['iteration']++):
$this->_sections['newsRow']['rownum'] = $this->_sections['newsRow']['iteration'];
$this->_sections['newsRow']['index_prev'] = $this->_sections['newsRow']['index'] - $this->_sections['newsRow']['step'];
$this->_sections['newsRow']['index_next'] = $this->_sections['newsRow']['index'] + $this->_sections['newsRow']['step'];
$this->_sections['newsRow']['first']      = ($this->_sections['newsRow']['iteration'] == 1);
$this->_sections['newsRow']['last']       = ($this->_sections['newsRow']['iteration'] == $this->_sections['newsRow']['total']);
?>
      <div class="game-list-block" onclick="redirectPg(<?php echo $this->_tpl_vars['NewsArr'][$this->_sections['newsRow']['index']]['news_id']; ?>
)">
		  <div class="game-image-block">
		   <a href="newsdetails.php?news_id=<?php echo $this->_tpl_vars['NewsArr'][$this->_sections['newsRow']['index']]['news_id']; ?>
">
			<?php if ($this->_tpl_vars['NewsArr'][$this->_sections['newsRow']['index']]['photo'] != ''): ?>
		     <img src="uploaded/news_images/thumbs/big_<?php echo $this->_tpl_vars['NewsArr'][$this->_sections['newsRow']['index']]['photo']; ?>
" alt="<?php echo $this->_tpl_vars['NewsArr'][$this->_sections['newsRow']['index']]['title']; ?>
" border="0"  />
			<?php else: ?> 
			 <img src="images/news_big.png" alt="Student" border="0" />
			<?php endif; ?>
		   </a>	
		  </div>
		  <div class="game-details-block">
            <h2><a href="newsdetails.php?news_id=<?php echo $this->_tpl_vars['NewsArr'][$this->_sections['newsRow']['index']]['news_id']; ?>
" style="text-decoration:none;"><?php echo $this->_tpl_vars['NewsArr'][$this->_sections['newsRow']['index']]['news_title']; ?>
</a></h2>
			<ul class="games-desc" style="padding-top:0px;">
               <li><span>Date :</span><?php echo $this->_tpl_vars['NewsArr'][$this->_sections['newsRow']['index']]['n_date']; ?>
</li>
            </ul>
			 <p class="clear"></p>
            <p style="padding-top:5px; padding-bottom:10px;"><?php echo $this->_tpl_vars['NewsArr'][$this->_sections['newsRow']['index']]['news_content']; ?>
</p>
           
            <div class="clear"></div>
				<!--<div class="view"><!--a href="studentdetails.php?student_id=<?php echo $this->_tpl_vars['StudentArr'][$this->_sections['studentRow']['index']]['user_id']; ?>
">view</a-->
		<!--<a href="newsdetails.php?news_id=<?php echo $this->_tpl_vars['NewsArr'][$this->_sections['newsRow']['index']]['news_id']; ?>
">view</a>
			</div>-->
         </div>
         <div class="clear"></div>
      </div>
	 <?php endfor; endif; ?> 
     <?php if ($this->_tpl_vars['pagination_arr'][1]): ?>
	 <div class="clear"></div>
      <div class="pagin">
         <ul>
           <?php echo $this->_tpl_vars['pagination_arr'][1]; ?>

         </ul>
      </div>
	 <?php endif; ?>
	 <?php else: ?>
	    News not found......
     <?php endif; ?>
	</div> 
   </div>